how to open local html file in python

101

how to open local html file in python -

import codecs
file = codecs.open("sample.html", "r", "utf-8")
print(file.read())

Comments

Submit
0 Comments